package com.li.netty.serve;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 11/16/2022 8:55 AM
 */
@Component
@Order
public class NettyStartListener implements ApplicationRunner {

    @Resource
    private SocketServer socketServer;

    @Override
    public void run(ApplicationArguments args) {
        this.socketServer.start();
    }

}
